<template>
  <div>
    <!-- 导航栏区域 -->
    <div class="nav">
      <router-link to="/">发现音乐</router-link>
      <router-link to="/my">我的</router-link>
      <router-link to="/friend">关注</router-link>
    </div>

    <!-- 路由出口 -->
    <router-view />
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
.nav {
  display: flex;
  background-color: #242424;
}
.nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  height: 44px;
  line-height: 44px;
  color: #fff;
}

.nav a.router-link-exact-active {
  color: #f00;
}
</style>